/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.srcptit.trainning.longph.btvn1;

import java.util.Scanner;

/**
 *
 * @author Long Pham
 */
public class Bai4 {

    public static void main(String[] args) {
        int n;
        Scanner sc = new Scanner(System.in);
        System.out.println("Mời nhập số n");
        n = sc.nextInt();
        long i = 3, dem = 1;
        System.out.print("2 ");
        while (dem < n) {
            if (ThuVien.ngto(i)) {
                System.out.print(i + " ");
                dem++;
            }
            i+=2;
        }
    }
}
